package com.example.yjhadmin.controller;

import com.example.common.vo.Result;
import com.example.yjhadmin.service.MatchFeign;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/yjh/admin")
public class MatchController {
    @Resource
    private MatchFeign matchFeign;
    @RequestMapping("selectMatches")
    public List selectMatches(){
        return matchFeign.selectMatches();
    }
    @RequestMapping("selectMatchById")
    public Result selectMatchById(@RequestParam("mid") String mid){
        return matchFeign.selectMatchById(mid);
    }
}
